package com.squid.base.common.convertor;

import org.mapstruct.InheritInverseConfiguration;

import java.util.List;

/**
 * Description
 *
 * @author jinhang
 * @since 2024-1-24
 **/
public interface BaseConverter<T, S> {
    T to(S source);

    @InheritInverseConfiguration
    S from(T target);

    List<T> to(List<S> sources);

    List<S> from(List<T> targets);
}
